@import '../vars.scss';
.main {
  display: flex;
  margin-top: 0.8rem;
  box-sizing: border-box;
  position: relative;
  height: 466px;
  overflow: hidden;
}
//主菜单
section:nth-of-type(1) {
  width: 200px;
  background-color: #fff;
  border: solid 1px #fefefe;
  padding: 1rem 0;
  dl {
    padding: 0.3rem 1rem;
    &:hover {
      background-color: #f3f3f3;
      cursor: pointer;
      & > dd {
        display: block;
      }
    }
    dt {
      a {
        color: #666;
        font-size: 0.9rem;
        &:hover {
          color: $redColor;
        }
        &:not(:last-of-type)::after {
          content: '/';
          position: relative;
          display: inline-block;
          margin: 0 3px;
          transform: scale(0.7) translateX(1px);
        }
      }
    }
    dd {
      position: absolute;
      background-color: #fff;
      right: 0;
      top: 0;
      bottom: 0;
      left: 200px;
      display: none;
      box-sizing: border-box;
      border: solid 1px #ddd;
      box-shadow: 0 0 3px rgba(#000000, 0.3);
    }
  }
}

//轮换图
section:nth-of-type(2) {
  flex: 1;
  display: flex;
  margin: 0 0.5rem;
  .slide {
    flex: 1 0 584px;
    margin-right: 0.5rem;
  }
  .ads {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
//用户相关
section:nth-of-type(3) {
  width: 200px;
  background-color: #fff;
  box-sizing: border-box;
  border: solid 1px #ddd;
  padding: 1rem;
  .user {
    .login {
      display: flex;
      justify-content: center;
      img {
        border-radius: 50%;
        width: 35px;
      }
      & > div {
        margin-left: 0.8rem;
        a {
          color: #333;
          font-size: 12px;
        }
      }
    }
    .plus {
      display: flex;
      justify-content: center;
      margin-top: 10px;
      a {
        padding: 4px 10px;
        color: #fff;
        border-radius: 15px;
        font-size: 13px;
        display: block;
        margin: 0 3px;
      }
      a:nth-child(1) {
        background-color: $redColor;
      }
      a:nth-child(2) {
        background-color: #000;
      }
    }
  }
  .line {
    background: linear-gradient(to right, white, #ccc, white);
    height: 1px;
    margin: 1rem 0;
  }
}
